<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/admin/include/init_admin.jsp" %>
<%@ page import="com.welfare.admin.service.*" %>
<%
	String sort_col				= StringUtil.nvl(request.getParameter("sort_col"), "to_number(service_id)");
	String sort_asc				= StringUtil.nvl(request.getParameter("sort_asc"), "asc");
	
	String srch_age				= StringUtil.nvl(request.getParameter("srch_age"));
	String srch_target			= StringUtil.nvl(request.getParameter("srch_target"));
	String srch_family			= StringUtil.nvl(request.getParameter("srch_family"));
	String srch_income			= StringUtil.nvl(request.getParameter("srch_income"));
	String srch_support			= StringUtil.nvl(request.getParameter("srch_support"));
	String srch_needs			= StringUtil.nvl(request.getParameter("srch_needs"));
	String service_name			= StringUtil.nvl(request.getParameter("service_name"));
	String service_info			= StringUtil.nvl(request.getParameter("service_info"));
	
	HashMap infos = new HashMap();
	infos.put("use_yn", "Y");
	infos.put("sort_col", sort_col);
	infos.put("sort_asc", sort_asc);
	infos.put("srch_age", srch_age);
	infos.put("srch_target", srch_target);
	infos.put("srch_family", srch_family);
	infos.put("srch_income", srch_income);
	infos.put("srch_support", srch_support);
	infos.put("srch_needs", srch_needs);
	infos.put("service_name", service_name);
	infos.put("service_info", service_info);
	


	ServiceDAO dao 	= new ServiceDAO();
	HashList list 	= dao.selectServiceList(infos);


	for (int i = 0; i < list.size(); i++) {
%>
	<tr height="26px" service_id="<%= list.get("service_id",i) %>">
		<td class="blx"><%= list.get("service_gubn", i) %></td>
		<td><%= list.get("service_name", i) %></td>
		<td><%= list.get("dept_name", i) %></td>
		<td><%= list.get("tel_no", i) %></td>
		<td class="c"><%= list.get("mod_date", i) %></td>
		<td class="c brx"><%= list.get("hit_count", i) %></td>
	</tr>
<%
	}
%>
						
